import BookShelf from './bookshelf.vue'
import bookShelfAdd from './bookshelfAdd.vue'
import bookShelfSearch from './bookshelfSearch.vue'
import bookShelfView from './bookshelfView.vue'

const components = [
    BookShelf,
    bookShelfAdd,
    bookShelfSearch,
    bookShelfView
];

const main = {
    install(Vue) {
        components.map((component) => {
            Vue.component(component.name, component)
        })
    }
};
export default main
